package com.ysxsoft.wdg.bean.response;

import java.util.ArrayList;
import java.util.List;

public class BackOrderResponse {
    /**
     * code : 200
     * ms : 成功
     * data : {"order":{"id":20,"orderid":323,"reason":"66","remark":"22","uid":567,"addtime":"2018-11-19 10:01:15","endtime":"1970-01-01 08:00:00","dsn":"20181118221849803253","status":0,"type":1,"account":999,"pic":["http://wdg.sanzhima.cn/oa/public/uploads/images/20181119/_3291473.jpg"],"companyid":0,"style":1,"back_dsn":null,"yun":0},"detail":[{"rule_name":"是","l_price":"999.00","num":1,"account":"999.00","product_name":"我的乖应用平台经营创客999元","pic":"http://wdg.sanzhima.cn/oa/public/static/admin/img/none.png","yun":"0.00","productid":48,"detailid":317}]}
     */

    private String code;
    private String ms;
    private DataBean data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMs() {
        return ms;
    }

    public void setMs(String ms) {
        this.ms = ms;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * order : {"id":20,"orderid":323,"reason":"66","remark":"22","uid":567,"addtime":"2018-11-19 10:01:15","endtime":"1970-01-01 08:00:00","dsn":"20181118221849803253","status":0,"type":1,"account":999,"pic":["http://wdg.sanzhima.cn/oa/public/uploads/images/20181119/_3291473.jpg"],"companyid":0,"style":1,"back_dsn":null,"yun":0}
         * detail : [{"rule_name":"是","l_price":"999.00","num":1,"account":"999.00","product_name":"我的乖应用平台经营创客999元","pic":"http://wdg.sanzhima.cn/oa/public/static/admin/img/none.png","yun":"0.00","productid":48,"detailid":317}]
         */

        private OrderBean order;
        private String mobile;
        private String zi;
        private List<DetailBean> detail;

        public OrderBean getOrder() {
            return order;
        }

        public void setOrder(OrderBean order) {
            this.order = order;
        }

        public List<DetailBean> getDetail() {
            return detail;
        }

        public void setDetail(List<DetailBean> detail) {
            this.detail = detail;
        }

        public String getMobile() {
            return mobile == null ? "" : mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getZi() {
            return zi == null ? "" : zi;
        }

        public void setZi(String zi) {
            this.zi = zi;
        }

        public static class OrderBean {
            /**
             * id : 20
             * orderid : 323
             * reason : 66
             * remark : 22
             * uid : 567
             * addtime : 2018-11-19 10:01:15
             * endtime : 1970-01-01 08:00:00
             * dsn : 20181118221849803253
             * status : 0
             * type : 1
             * account : 999
             * pic : ["http://wdg.sanzhima.cn/oa/public/uploads/images/20181119/_3291473.jpg"]
             * companyid : 0
             * style : 1
             * back_dsn : null
             * yun : 0
             */
            private int id;
            private int orderid;
            private String reason;
            private String remark;
            private int uid;
            private String addtime;
            private String endtime;
            private String dsn;
            private int status;
            private int type;
            private String account;
            private int companyid;
            private int style;
            private String back_dsn;
            private int yun;
            private String refuse;
            private List<String> pic;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getOrderid() {
                return orderid;
            }

            public void setOrderid(int orderid) {
                this.orderid = orderid;
            }

            public String getReason() {
                return reason == null ? "" : reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            public String getRemark() {
                return remark == null ? "" : remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            public int getUid() {
                return uid;
            }

            public void setUid(int uid) {
                this.uid = uid;
            }

            public String getAddtime() {
                return addtime == null ? "" : addtime;
            }

            public String getRefuse() {
                return refuse == null ? "" : refuse;
            }

            public void setRefuse(String refuse) {
                this.refuse = refuse;
            }

            public void setAddtime(String addtime) {
                this.addtime = addtime;
            }

            public String getEndtime() {
                return endtime == null ? "" : endtime;
            }

            public void setEndtime(String endtime) {
                this.endtime = endtime;
            }

            public String getDsn() {
                return dsn == null ? "" : dsn;
            }

            public void setDsn(String dsn) {
                this.dsn = dsn;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getAccount() {
                return account==null?"":account;
            }

            public void setAccount(String account) {
                this.account = account;
            }

            public int getCompanyid() {
                return companyid;
            }

            public void setCompanyid(int companyid) {
                this.companyid = companyid;
            }

            public int getStyle() {
                return style;
            }

            public void setStyle(int style) {
                this.style = style;
            }

            public String getBack_dsn() {
                return back_dsn == null ? "" : back_dsn;
            }

            public void setBack_dsn(String back_dsn) {
                this.back_dsn = back_dsn;
            }

            public int getYun() {
                return yun;
            }

            public void setYun(int yun) {
                this.yun = yun;
            }

            public List<String> getPic() {
                if (pic == null) {
                    return new ArrayList<>();
                }
                return pic;
            }

            public void setPic(List<String> pic) {
                this.pic = pic;
            }
        }

        public static class DetailBean {
            /**
             * rule_name : 是
             * l_price : 999.00
             * num : 1
             * account : 999.00
             * product_name : 我的乖应用平台经营创客999元
             * pic : http://wdg.sanzhima.cn/oa/public/static/admin/img/none.png
             * yun : 0.00
             * productid : 48
             * detailid : 317
             */
            private String rule_name;
            private String l_price;
            private String num;
            private String account;
            private String product_name;
            private String pic;
            private String yun;
            private String productid;
            private String detailid;

            public String getRule_name() {
                return rule_name == null ? "" : rule_name;
            }

            public void setRule_name(String rule_name) {
                this.rule_name = rule_name;
            }

            public String getL_price() {
                return l_price == null ? "" : l_price;
            }

            public void setL_price(String l_price) {
                this.l_price = l_price;
            }

            public String getNum() {
                return num == null ? "" : num;
            }

            public void setNum(String num) {
                this.num = num;
            }

            public String getAccount() {
                return account == null ? "" : account;
            }

            public void setAccount(String account) {
                this.account = account;
            }

            public String getProduct_name() {
                return product_name == null ? "" : product_name;
            }

            public void setProduct_name(String product_name) {
                this.product_name = product_name;
            }

            public String getPic() {
                return pic == null ? "" : pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getYun() {
                return yun == null ? "" : yun;
            }

            public void setYun(String yun) {
                this.yun = yun;
            }

            public String getProductid() {
                return productid == null ? "" : productid;
            }

            public void setProductid(String productid) {
                this.productid = productid;
            }

            public String getDetailid() {
                return detailid == null ? "" : detailid;
            }

            public void setDetailid(String detailid) {
                this.detailid = detailid;
            }
        }
    }
}
